package at.theengine.android.botstorage.gsobjects;

import java.util.ArrayList;

public class GsObjects {
	
	private ArrayList<Folder> folders;
	private ArrayList<File> files;
	
	public GsObjects(){
		folders = new ArrayList<Folder>();
		files = new ArrayList<File>();
	}
	
	public void addFile(File file){
		files.add(file);
	}
	
	public void addFolder(Folder folder){
		folders.add(folder);
	}
	
	public Folder[] getFolders(){
		Folder[] arrFolders = new Folder[folders.size()];
		arrFolders = folders.toArray(arrFolders);
		return arrFolders;
	}
	
	public File[] getFiles(){
		File[] arrFiles = new File[files.size()];
		arrFiles = files.toArray(arrFiles);
		return arrFiles;
	}

}
